<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateActiviryPartyTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //活动房
        Schema::create('active_party', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->nullable()->comment('活动方名称');
            $table->string('desc')->nullable()->comment('活动方描述');
            $table->integer('thumb_id')->default(0)->comment('活动房展示图');
            $table->integer('logo_id')->default(0)->comment('logo图片id');
            $table->text('site_present')->nullable()->comment('场地介绍');
            $table->integer('site_present_video_id')->default(0)->comment('场地介绍视频');
            $table->integer('popularity')->default(0)->comment('人气值');
            $table->integer('status')->default(0)->comment('状态 0：隐藏 1：显示');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
